package com.etc.service.impl;

import java.util.List;

import com.etc.dao.ForumDao;
import com.etc.dao.impl.ForumDaoImpl;
import com.etc.entity.Forum;
import com.etc.entity.Message;
import com.etc.entity.Person;
import com.etc.service.ForumService;
import com.etc.util.PageData;

/**
 * 社区生活信息 
 * @author 林吉旭、周孝梅
 *
 */

public class ForumServiceImpl implements ForumService {
	ForumDao fudao = new ForumDaoImpl();
	
	@Override
	public List<Forum> SelForumAll() {
		// TODO Auto-generated method stub
		return fudao.SelForumAll();
	}
	
	@Override
	public boolean DelForum(int articleId) {
		// TODO Auto-generated method stub
		return fudao.DelForum(articleId) >0;
	}
	
	@Override
	public boolean UpdaForum(Forum forum) {
		// TODO Auto-generated method stub
		return fudao.UpdaForum(forum) >0;
	}
	
	@Override
	public boolean AddForum(Forum forum) {
		// TODO Auto-generated method stub
		return fudao.AddForum(forum)>0;
	}
	@Override
	public PageData<Forum> GetForumAll(int page, int pageSize, String strLike) {
		// TODO Auto-generated method stub
		return fudao.GetForumAll(page, pageSize, strLike);
	}

	@Override
	public PageData<Message> GetForumimg(int page, int pageSize, String strLike) {
		// TODO Auto-generated method stub
		return fudao.GetForumimg(page, pageSize, strLike);
	}

}
